#pragma once

#include "Containers/Containers.h"

#include "ScriptCompiler/AST/ExpressionNode.h"

class CMemberAccessNode : public CExpressionNode
{
public:
    CMemberAccessNode(std::weak_ptr<CScriptFileContext> InFile)
        : CExpressionNode(InFile,EASTNodeType::MemberAccess)
    {
    }

    TVector<std::shared_ptr<CExpressionNode>> AccessChain;

    TVector<std::shared_ptr<CScriptToken>> AccessOperators;


    virtual void DebugPrint(int32_t InDepth) override;

    virtual std::shared_ptr<CScriptToken> GetFirstToken() override;

};